//
//  MutilTextSettingCellData.h
//  18Birdies
//
//  Created by poleness on 16/5/17.
//  Copyright © 2016年 Lc. All rights reserved.
//

#import "LcCellData.h"
#import "LcFoundation.h"
#import "UIButton+Lc.h"

@interface MutilTextSettingCellData : LcCellData

+ (instancetype)cellDataWithTitle:(NSString*)title
                          content:(NSString*)content
              disclosureIndicator:(BOOL)disclosureIndicator
                andOnClickHandler:(OnCellClickedHanlder)onClickedHandler;

+ (instancetype)cellDataWithAttrTitle:(NSAttributedString*)attrTitle
                          attrContent:(NSAttributedString*)attrContent
                  disclosureIndicator:(BOOL)disclosureIndicator
                    andOnClickHandler:(OnCellClickedHanlder)onClickedHandler;

+ (instancetype)cellDataWithTitle:(NSString*)title
                          content:(NSString*)content
              disclosureIndicator:(BOOL)disclosureIndicator
              contentClickHandler:(OnClickedHandler)contentClickHandler
                andOnClickHandler:(OnCellClickedHanlder)onClickedHandler;

@property(nonatomic, copy) NSAttributedString* title;
@property(nonatomic, copy) NSAttributedString* content;
@property(nonatomic, assign) CGPoint titleLabelPoint;
@property(nonatomic, assign) int titleWidthMax;
/*
 * use for calculate titleWidthMax, default use gr17
 */
@property(nonatomic, strong) LcFont* titleFont;
/*
 * use for content can clicked
 */
@property(nonatomic, strong) OnClickedHandler contentClickHandler;
@property(nonatomic, strong) LcFont* nomalStateFont;
@property(nonatomic, strong) UIColor* selectStateColor;

- (void)setTextContent:(NSString*)contextText;

@end
